package uk.co.q3c.deplan.client.domain;

public class PropertyChangeEvent {
	private DomainObject source;
	private String propertyName;
	private Object oldValue;
	private Object newValue;

	/**
	 * @param source
	 * @param propertyName
	 * @param oldValue
	 * @param newValue
	 */
	public PropertyChangeEvent(DomainObject source, String propertyName, Object oldValue, Object newValue) {
		super();
		this.source = source;
		this.propertyName = propertyName;
		this.oldValue = oldValue;
		this.newValue = newValue;
	}

	public DomainObject getSource() {
		return source;
	}

	public void setSource(DomainObject source) {
		this.source = source;
	}

	public String getPropertyName() {
		return propertyName;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	public Object getOldValue() {
		return oldValue;
	}

	public void setOldValue(Object oldValue) {
		this.oldValue = oldValue;
	}

	public Object getNewValue() {
		return newValue;
	}

	public void setNewValue(Object newValue) {
		this.newValue = newValue;
	}

}
